package com.aos.erp.gov.ex.mapper;

import com.aos.erp.common.dao.mapper.SuperMapper;
import com.aos.erp.gov.ex.model.GovExSyncTask;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.Date;

public interface GovExSyncTaskMapper extends SuperMapper<GovExSyncTask> {

    @Update("UPDATE t_gov_ex_sync_task SET last_start_time=#{time} WHERE id=#{id}")
    void updateLastStartTime(@Param("id") long id, @Param("time") Date time);

    @Update("UPDATE t_gov_ex_sync_task SET last_end_time=#{time} , last_num=#{num} WHERE id=#{id}")
    void updateLastEndTime(@Param("id") long id, @Param("time") Date time, @Param("num") int num);

}
